﻿<UserControl x:Class="USElections.Tiles.VoteBackTile"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             FontFamily="{StaticResource PhoneFontFamilyNormal}"
             FontSize="{StaticResource PhoneFontSizeNormal}"
             Foreground="{StaticResource PhoneForegroundBrush}"
             d:DesignHeight="173"
             d:DesignWidth="173">

    <Grid x:Name="LayoutRoot"
          Width="173"
          Height="173"
          Background="{StaticResource PhoneAccentBrush}">
        
        <Image Width="173"
               Height="173">
            <Image.Source>
                <BitmapImage UriSource="{Binding Path=Candidate.ImageUri, Mode=OneWay}"
                             CreateOptions="BackgroundCreation" />
            </Image.Source>
        </Image>

        <TextBlock FontSize="{StaticResource PhoneFontSizeNormal}"
                   FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                   Margin="10,0,0,6"
                   TextWrapping="NoWrap"
                   VerticalAlignment="Top"
                   Text="You voted for" />

        <TextBlock FontSize="{StaticResource PhoneFontSizeNormal}"
                   FontFamily="{StaticResource PhoneFontFamilySemiBold}"
                   Margin="10,0,0,6"
                   TextWrapping="NoWrap"
                   VerticalAlignment="Bottom"
                   Text="{Binding Candidate.FullName, Mode=OneWay}" />
    </Grid>
</UserControl>
